import React from 'react';
import {NavLink} from "react-router-dom";

function MyNavLink(props) {
    return (
        <nav>
            <NavLink
                className={({isActive})=>isActive? 'a-active':'a-link'}
                to={'/'}>消息列表</NavLink>
            <NavLink
                className={({isActive})=>isActive? 'a-active':'a-link'}
                to={'/search'}>git搜索</NavLink>
            <NavLink
                className={({isActive})=>isActive? 'a-active':'a-link'}
                to={'/my'}>个人中心</NavLink>
        </nav>
    );
}

export default MyNavLink;